package com.sdkj.dspservice.modules.demand.service.impl;

import com.sdkj.dspservice.common.base.service.impl.CrudServiceImpl;
import com.sdkj.dspservice.modules.demand.dao.DemandStatisticsDao;
import com.sdkj.dspservice.modules.demand.entity.Demand;
import com.sdkj.dspservice.modules.demand.service.DemandStatisticsService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 需求类型service实现类
 *
 * @author tm
 */
@Service
@Transactional(readOnly = true)
public class DemandStatisticsServiceImpl extends CrudServiceImpl<DemandStatisticsDao, Demand> implements DemandStatisticsService {

    @Override
    public List<Map<String, Object>> statisticsByType(Demand demand) {
        return dao.statisticsByType(demand);
    }

}
